;
(function() {

	var skill = {
		//非安全。添加被自己邀请注册的用户
		_addRegisterUser: function(user_id) {
			var register_users = this.register_users || (this.register_users = []);
			register_users.push(user_id);
			this.save();
		},
		//获取邀请注册用户列表
		getRegisterUserList: function(num, page) {
			var register_users = this.register_users || (this.register_users = []);
			var result = data_cut.page(register_users, num, page);
			result = result.map(function(user_id) {
				var user = UserCon.get(user_id);
				var bus = user.info.register_bus_id && BusCon.get(user.info.register_bus_id);
				bus.url = bus.getOneVisitableUrl();
				return {
					user: user,
					bus: bus
				}
			});
			return result;
		}
	};
	module.exports = skill;
	var db = require("../db/index");
	var CouponCon = require("../coupon/_con");
	var DomainCon = require("../domain/_con");
	var GoodsCon = require("../goods/_con");
	var UserCon = require("../../core/user/_con");
	var BusCon = require("../../core/bus/_con");
	var AchCon = require("../ach/_con");
	var ClassifyCon = require("../bus.classify/_con");
	var TagCon = require("../bus.tag/_con");
	var LeagueCon = require("../league/_con");
	var BuffCon = require("../buff/_con");
	var BusUserBindCon = require("../bus_user_bind/_con");
	var BusGuideCon = require("../bus.guide/_con");
	var CommentCon = require("../comment/_con");
	var config = require("../_include/config");
	var data_cut = require("../_include/data_cut");
	var helper = require("../_include/helper");
	var md5 = require("../_include/md5");
	var $Object = require("../_include/$.Object");
	var $Array = require("../_include/$.Array");
	var tld = require('tldjs');
	var fs = require("fs");
	var Fiber = require('fibers');
}());